#pragma once
#include "afxwin.h"
#include "richeditds.h"


// CCodeDlg dialog

class CCodeDlg : public CDialog
{
	DECLARE_DYNAMIC(CCodeDlg)

public:
	CCodeDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CCodeDlg();

// Dialog Data
	enum { IDD = IDD_CODEDLG };
	CStringA RichText;
	CString FileName;
	BOOL IsCode;

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
protected:
	CRichEditDS CodeText;
public:
	afx_msg void OnBnClickedViewrtf();
	afx_msg void OnBnClickedSavertf();
};
